package com.zy.utils;

import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * 用户认证商铺时，所生成的shopid号
 * 
 * @author 梅文军
 * 
 */
public class ShopIdUtil {
	public static BigInteger toGenerate() {
		SimpleDateFormat sd = new SimpleDateFormat("HHmmss");
		String num1 = sd.format(new Date());
		Random ran = new Random();
		Integer num2 = Integer.valueOf(ran.nextInt(9999));
		String ranNum = num1 + "" + num2;
		return new BigInteger(ranNum);
	}
}
